@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row main">
            <div class="col-md-2">
                <div class="panel panel-default">
                    <div class="panel-heading">会员中心</div>
                    <ul class="list-group">
                        <li class="list-group-item"><a href="/venue/create">创建场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_venues">我的场馆</a> </li>
                        <li class="list-group-item"><a href="/venue/my_follows">我的收藏</a> </li>
                        <li class="list-group-item"><a href="/user/set_icon">设置头像</a> </li>
                        <li class="list-group-item"><a href="/logout">退出登录</a> </li>
                    </ul>
                </div>

            </div>
            <div class="col-md-10">
                <div class="panel panel-default">
                    <div class="panel-heading">创建场馆</div>
                    <div class="panel-body">
                        <form method="post" action="/venue/save">
                            @csrf
                            <div class="form-group">
                                <label for="exampleInputEmail1">球馆类型</label>
                                <select name="type_id" class="form-control">
                                    @foreach($types as $type)
                                    <option value="{{$type->id}}">{{$type->name}}</option>
                                    @endforeach
                                </select>
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword1">球场名称</label>
                                <input type="text" class="form-control" id="exampleInputPassword1" name="name">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword1">球场地址</label>
                                <input type="text" class="form-control" id="exampleInputPassword1" name="address">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword1">场地数量</label>
                                <input type="text" class="form-control" id="exampleInputPassword1" name="num">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword1">电话:</label>
                                <input type="text" class="form-control" id="exampleInputPassword1" name="phone">
                            </div>
                            <div class="form-group">
                                <label for="exampleInputPassword1">球场简介</label>
                                <textarea rows="5" class="form-control" name="des"></textarea>
                            </div>
                            <div class="form-group">
                                <label class="radio-inline">
                                    <input type="radio" name="state" id="inlineRadio1" value="1" checked> 开馆
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="state" id="inlineRadio2" value="0"> 闭馆
                                </label>
                            </div>

                            <button type="submit" class="btn btn-info">Submit</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
